package UserThread;

import java.io.IOException;

import UserClientSocket.Client;
import UserGlobal.GlobalData;
//id删除线程
public class DeleteThread extends Thread {
    String mId = GlobalData.Myid;//要删除的id
    public DeleteThread(String id) {
        mId = id;
    }
    @Override
    public void run() {
        try {
            Client removeclient = new Client(4000,0,0);
            removeclient.sendString(mId);
            if (mId.equals(GlobalData.Myid)) {
                GlobalData.Myid = "";
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

        super.run();
    }
}
